package com.my.selectcoursesystem.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "course")
public class Course {
    @Id
    @Column(name = "c_id")
    private String cid;
    @Column(name = "c_name")
    private String cname;
    @Column(name = "type")
    private String type;
    @Column(name = "college")
    private String college;
    @Column(name = "teacher_id")
    private String teacherid;
    @Column(name = "course_time")
    private String coursetime;
    @Column(name = "course_week")
    private String courseweek;
    @Column(name = "classroom")
    private String classroom;
    @Column(name = "credits")
    private Integer credits;
    @Column(name = "total_num")
    private Integer totalnum;

    public Course(String cid, String cname, String type, String college, String teacherid, String coursetime, String courseweek, String classroom, Integer credits, Integer totalnum) {
        this.cid = cid;
        this.cname = cname;
        this.type = type;
        this.college = college;
        this.teacherid = teacherid;
        this.coursetime = coursetime;
        this.courseweek = courseweek;
        this.classroom = classroom;
        this.credits = credits;
        this.totalnum = totalnum;
    }

    public Course() {
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(String teacherid) {
        this.teacherid = teacherid;
    }

    public String getCoursetime() {
        return coursetime;
    }

    public void setCoursetime(String coursetime) {
        this.coursetime = coursetime;
    }

    public String getCourseweek() {
        return courseweek;
    }

    public void setCourseweek(String courseweek) {
        this.courseweek = courseweek;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    public Integer getCredits() {
        return credits;
    }

    public void setCredits(Integer credits) {
        this.credits = credits;
    }

    public Integer getTotalnum() {
        return totalnum;
    }

    public void setTotalnum(Integer totalnum) {
        this.totalnum = totalnum;
    }
}
